The result of strings.Split is a slice with one element - the empty string. fmt.Println is just not displaying it. Try this example (notice ... ... <看更多>
sprig. Useful template functions for Go templates. ... In Go, a slice is a growable array. ... The older split function splits a string into a dict . ... <看更多>